import Cookies from 'js-cookie'

const TokenKey = 'Lekkdee'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

const UserInfo = 'userinfo'

export function getUserInfo() {
  return Cookies.get(UserInfo)
}

export function setUserInfo(token) {
  return Cookies.set(UserInfo, token)
}

export function removeUserInfo() {
  return Cookies.remove(UserInfo)
}
